package com.situ.blog.dao;

import com.situ.blog.pojo.Blog;
import com.situ.blog.pojo.query.BlogQuery;
import com.situ.blog.util.PageRusult;

import java.util.List;

public interface IBlogDao {
    List<Blog> selectByPage(BlogQuery blogQuery);

    int totalCount(BlogQuery blogQuery);

    void add(Blog blog);

    int deleteById(int id);

    Blog selectById(String id);

    void updateStatus(String id,int status);

    void update(Blog blog);

    List<Blog> selectAll();

    void addExcel(Blog blog);
}
